package com.redis.bloom;

import io.rebloom.client.Client;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author lzy
 * @date 2020-10-01 下午5:18
 */
public class BloomTest02 {
    public static void main(String[] args) {
        Client client = new Client("10.2.32.104", 6379);
        client.delete("codehole");
        for (int i = 0; i < 100000; i++) {
            client.add("codehole", "user" + i);
            boolean ret = client.exists("codehole", "user" + (i + 1));
            if (ret) {
                System.out.println(i);
                break;
            }
        }

        client.close();
    }
}
